package com.hxy.service;

import com.hxy.entity.Fuser;
import com.hxy.mapper.FuserMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2021-07-26
 */
@Service
public class FuserServiceImpl extends ServiceImpl<FuserMapper, Fuser>  {
@Resource
FuserMapper fuserMapper;
    public int add(Fuser fuser){
    return fuserMapper.insert(fuser);
}
    public List<Fuser> selecUmeAndPwd(String ume, String pwd){
        return fuserMapper.selectUmeAndPwdInt(ume, pwd);
    }
    public List<Fuser> selectAll(){
        return fuserMapper.selectAll();
    }
}
